package com.tianji.learning.service;

import com.tianji.api.dto.leanring.PointsRecordMsgDTO;
import com.tianji.learning.entity.PointsRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.vo.PointsStatisticsVO;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 学习积分记录，每个月底清零 服务类
 * </p>
 *
 * @author xjs
 */
public interface IPointsRecordService extends IService<PointsRecord> {

    /***
     * 收到积分表更消息，记录积分明细
     *
     */
    void onPointsRecordChange(PointsRecordMsgDTO msg);

    List<PointsStatisticsVO> today();

    String getBoardKey(LocalDateTime now);
}
